package com.System.pojo;

import java.sql.Timestamp;

public class Comment {
    private int id;
    private String userName;
    private int likeNumber;
    private int postId;
    private String barName;
    private String context;
    private java.sql.Timestamp created_at;

    public Comment(int id) {
        this.id = id;
    }

    public Comment(String userName, int postId, String barName) {
        this.userName = userName;
        this.postId = postId;
        this.barName = barName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(int likeNumber) {
        this.likeNumber = likeNumber;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public String getBarName() {
        return barName;
    }

    public void setBarName(String barName) {
        this.barName = barName;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Timestamp getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Timestamp created_at) {
        this.created_at = created_at;
    }

    public Comment(int id, String userName, int likeNumber, int postId, String barName, String context, Timestamp created_at) {
        this.id = id;
        this.userName = userName;
        this.likeNumber = likeNumber;
        this.postId = postId;
        this.barName = barName;
        this.context = context;
        this.created_at = created_at;
    }

    public Comment() {
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", likeNumber=" + likeNumber +
                ", postId=" + postId +
                ", barName='" + barName + '\'' +
                ", context='" + context + '\'' +
                ", created_at=" + created_at +
                '}';
    }
}
